/**
 * 
 */
package com.epam.entity;

/**
 * @author Nugumanova V.
 *
 */
public  class User extends AbstractEntity {
	
	protected String userName;
	protected String password;
	protected Role role;
	
	public User(long id, String userName, String password, Role role) {
		super(id);
		this.userName = userName;
		this.password = password;
		this.role = role;
		
	}
	
	public String getUserName() {
		return userName;
	}

	public String getPassword() {
		return password;
	}

	public Role getRole() {
		return role;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "User [userName=" + userName + ", password=" + password + "]";
	}
	
	

}
